<?php

class Login {

	public function __construct() {}
	
	public static function view($redirect = '/',$template='auth/login.tpl') {
		$view = Smarty_View::factory($template);
		$view->redirect = $redirect;
		$view->facebook = "";
		if(Arr::get(Kohana::modules(), "facebook")) {
			$view->facebook = Smarty_View::factory("auth/facebookLoginButton.tpl");
		}
		return $view;
	}

} // End Login